package com.project.bean;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.project.util.SnowIdUtils;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 客商基本档案
 */

@Getter
@Setter
@TableName(value = "bd_cubasdoc")
public class CubasdocBean {


    /**创建人*/
    @TableField(value = "creator")
    private String creator;/////////登录人

    /**是否散户*/
    @TableField(value = "freecustflag")
    private String freecustflag;/////////N

    /**是否渠道成员*/
    @TableField(value = "isconnflag")
    private String isconnflag;////////N

    /**备注*/
    @TableField(value = "memo")
    private String memo;///////////

    /**修改人*/
    @TableField(value = "modifier")
    private String modifier;///////////////

    /**地区类型*/
    @TableField(value = "pk_areacl")
    private String pk_areacl;/////////////////

    /**公司主键*/
    @TableField(value = "pk_corp")
    private String pk_corp;

    /**客商编号*/
    @TableField(value = "custcode")
    private String custcode;//////////随机填写

    /**客商名称*/
    @TableField(value = "custname")
    private String custname;////////随机填写

    /**客商简称*/
    @TableField(value = "custshortname")
    private String custshortname;///////随机填写



    /**客商类型*/
    @TableField(value = "custprop")
    private int custprop =0;

    /***/
    @TableField(value = "dr")
    private int dr=0;

    /**是否DRP结点*/
    @TableField(value = "drpnodeflag")
    private String drpnodeflag="N";

    /**创建时间*/
    @TableField(value = "createtime")
    private String createtime=LocalDateTime.now()+"";///////////////////

    /**修改时间*/
    @TableField(value = "modifytime")
    private String modifytime=LocalDateTime.now()+"";

    /**客商档案主键id*/
    @TableId(value = "pk_cubasdoc")
    private String pk_cubasdoc= SnowIdUtils.uniqueLong()+"";

    /***/
    @TableField(value = "ts")
    private String ts=LocalDateTime.now()+"";


    /**信用额度*/
    @TableField(value = "creditmny")
    private String creditmny=null;
    /**默认账户*/
    @TableField(value = "accdefault")
    private String accdefault=null;
    /**客商类型*/
    @TableField(value = "billtemplet")
    private String billtemplet=null;
    /**呼机1*/
    @TableField(value = "bp1")
    private String bp1=null;
    /**呼机2*/
    @TableField(value = "bp2")
    private String bp2=null;
    /**呼机3*/
    @TableField(value = "bp3")
    private String bp3=null;
    /**通信地址*/
    @TableField(value = "conaddr")
    private String conaddr=null;
    /**对应结算单位(已废弃)*/
    @TableField(value = "correspondunit")
    private String correspondunit=null;
    /**自定义项*/
    @TableField(value = "def1")
    private String def1=null;
    /**自定义项*/
    @TableField(value = "def10")
    private String def10=null;
    /**自定义项*/
    @TableField(value = "def11")
    private String def11=null;
    /**自定义项*/
    @TableField(value = "def12")
    private String def12=null;
    /**自定义项*/
    @TableField(value = "def13")
    private String def13=null;
    /**自定义项*/
    @TableField(value = "def14")
    private String def14=null;
    /**自定义项*/
    @TableField(value = "def15")
    private String def15=null;
    /**自定义项*/
    @TableField(value = "def16")
    private String def16=null;
    /**自定义项*/
    @TableField(value = "def17")
    private String def17=null;
    /**自定义项*/
    @TableField(value = "def18")
    private String def18=null;
    /**自定义项*/
    @TableField(value = "def19")
    private String def19=null;
    /**自定义项*/
    @TableField(value = "def2")
    private String def2=null;
    /**自定义项*/
    @TableField(value = "def20")
    private String def20=null;
    /**自定义项*/
    @TableField(value = "def3")
    private String def3=null;
    /**自定义项*/
    @TableField(value = "def4")
    private String def4=null;
    /**自定义项*/
    @TableField(value = "def5")
    private String def5=null;
    /**自定义项*/
    @TableField(value = "def6")
    private String def6=null;
    /**自定义项*/
    @TableField(value = "def7")
    private String def7=null;
    /**自定义项*/
    @TableField(value = "def8")
    private String def8=null;
    /**自定义项*/
    @TableField(value = "def9")
    private String def9=null;
    /**电子邮箱*/
    @TableField(value = "email")
    private String email=null;
    /**外文名称*/
    @TableField(value = "engname")
    private String engname=null;
    /**传真1*/
    @TableField(value = "fax1")
    private String fax1=null;
    /**传真2*/
    @TableField(value = "fax2")
    private String fax2=null;
    /**法人*/
    @TableField(value = "legalbody")
    private String legalbody=null;
    /**联系人1*/
    @TableField(value = "linkman1")
    private String linkman1=null;
    /**联系人1*/
    @TableField(value = "linkman2")
    private String linkman2=null;
    /**联系人1*/
    @TableField(value = "linkman3")
    private String linkman3=null;
    /**经济类型*/
    @TableField(value = "ecotypesincevfive")
    private String ecotypesincevfive=null;
    /**助记码*/
    @TableField(value = "mnecode")
    private String mnecode=null;
    /**手机1**/
    @TableField(value = "mobilephone1")
    private String mobilephone1=null;
    /**手机1*/
    @TableField(value = "mobilephone2")
    private String mobilephone2=null;
    /**手机1*/
    @TableField(value = "mobilephone3")
    private String mobilephone3=null;
    /**电话*/
    @TableField(value = "phone1")
    private String phone1=null;
    /**电话*/
    @TableField(value = "phone2")
    private String phone2=null;
    /**电话*/
    @TableField(value = "phone3")
    private String phone3=null;
    /**对应公司编码*/
    @TableField(value = "pk_corp1")
    private String pk_corp1=null;
    /**客商总公司编码*/
    @TableField(value = "pk_cubasdoc1")
    private String pk_cubasdoc1=null;
    /**集团价格分组*/
    @TableField(value = "pk_pricegroup")
    private String pk_pricegroup=null;
    /**营业地址*/
    @TableField(value = "saleaddr")
    private String saleaddr=null;
    /**封存标志*/
    @TableField(value = "sealflag")
    private String sealflag=null;
    /**纳税人登记号*/
    @TableField(value = "taxpayerid")
    private String taxpayerid=null;
    /**所属行业*/
    @TableField(value = "trade")
    private String trade=null;
    /***/
    @TableField(value = "url")
    private String url=null;
    /**邮政编码*/
    @TableField(value = "zipcode")
    private String zipcode=null;
    /**注册资金*/
    @TableField(value = "registerfund")
    private Double registerfund=null;

    public CubasdocBean() {
    }

    public CubasdocBean(String creator, String freecustflag, String isconnflag,
                        String memo, String modifier, String pk_areacl,
                        String pk_corp, String custcode, String custname,
                        String custshortname) {
        this.creator = creator;
        this.freecustflag = freecustflag;
        this.isconnflag = isconnflag;
        this.memo = memo;
        this.modifier = modifier;
        this.pk_areacl = pk_areacl;
        this.pk_corp = pk_corp;
        this.custcode = custcode;
        this.custname = custname;
        this.custshortname = custshortname;
    }

    //    /**客商档案主键id*/
//    @TableId(value = "pk_cubasdoc")
//    private long cubasdocId;
//
//    /**客商名称*/
//    @TableField(value = "custname")
//    private String custname;
//
//    /**客商简称*/
//    @TableField(value = "custshortname")
//    private String custshortname;
//
//    /**外文名称*/
//    @TableField(value = "engname")
//    private String engname;
//
//    /**助记码*/
//    @TableField(value = "mnecode")
//    private String mnecode;
//
//    /**所属行业*/
//    @TableField(value = "trade")
//    private String trade;
///////////
//    /**是否散户*/
//    @TableField(value = "freecustflag")
//    private String freecustflag;//以下三个应该是所属行业的枚举类型，可以设置为初始值
//
//    /**是否DRP结点*/
//    @TableField(value = "drpnodeflag")
//    private String drpnodeflag;
//
//    /**是否渠道成员*/
//    @TableField(value = "isconnflag")
//    private String isconnflag;
//
//    /**客商总公司编码*/
//    @TableField(value = "pk_cubasdoc1")
//    private long cubasdoc1;
//
//    /**客商类型*/
//    @TableField(value = "custprop")
//    private String custprop="外部单位";//数据库中为smallint类型，idea中应该用整型Integer,此处初始值为String类型
//
//    /**对应公司*/
//    @TableField(value = "pk_corp1")
//    private long corp1;//此处应为公司对象
//
//    /**所属地区*/
//    @TableField(value = "pk_areacl")
//    private String areacl;
//
//    /**纳税人登记号*/
//    @TableField(value = "taxpayerid")
//    private String taxpayerid;
//
//    /**法人*/
//    @TableField(value = "legalbody")
//    private String legalbody;
//
//    /**经济类型*/
//    @TableField(value = "ecotypesincevfive")
//    private String ecotypesincevfive;
//
//    /**注册资金*/
//    @TableField(value = "registerfund")
//    private Integer registerfund=100000;//设立初始值为十万------------------
//
//    /**备注*/
//    @TableField(value = "memo")
//    private String memo;
//
//    /**创建人*/
//    @TableField(value = "creator")
//    private String creator;
//
//    /**创建时间*/
//    @TableField(value = "createtime")
//    private LocalDateTime createtime=LocalDateTime.now();
//
//    /**修改人*/
//    @TableField(value = "modifier")
//    private String modifier;
//
//    /**修改时间*/
//    @TableField(value = "modifytime")
//    private LocalDateTime modifytime =LocalDateTime.now();



}
